<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="童佳豪">
    <title>练习04 定位</title>
</head>
<style>
    .box {
        top: 50px;
        left: 50px;
        background-color: #CAECD3;
        width: 620px;
        height: 183px;
        position: relative;
    }

    .container {
        position: absolute;
        top: 20px;
        background-color: white;
        width: 130px;
    }

    .img {
        width: 100px;
        height: 100px;
        margin: 15px 15px 0 15px;
    }

    div {
        text-align: center;
    }
</style>
<body>
<div class="box">
    <div class="container" style="left: 20px;">
        <img class="img" src="./素材/1.png" alt="image1">
        <div>风景1</div>
    </div>
    <div class="container" style="left: 170px;">
        <img class="img" src="./素材/2.png" alt="image2">
        <div>风景2</div>
    </div>
    <div class="container" style="left: 320px;">
        <img class="img" src="./素材/3.png" alt="image3">
        <div>风景3</div>
    </div>
    <div class="container" style="left: 470px;">
        <img class="img" src="./素材/4.png" alt="image4">
        <div>风景4</div>
    </div>
</div>
</body>
</html>
